package com.coms514.scheduleme;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class SMReceiver extends BroadcastReceiver {
	final static String TAG = "SMReceiver";
	
	@Override
	public void onReceive(Context context, Intent intent) {
		println(">>> Entering SMReceiver.onReceive()");
		
		Intent myIntent = new Intent(context.getApplicationContext(), TodayEventActivity.class);
		myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		
		context.startActivity(myIntent);
	}
	
	/* for logging */
	private void println(String msg) {
		Log.d(TAG, msg);
	}
}
